/**
 * 带双亲指示的二叉树顺序存储的头文件
 */
#define MAXSIZE 20
typedef char datatype;
typedef struct {
    datatype data;
    int lchild, rchild;
    int parent;
} node;
node tree[MAXSIZE]; 
int n;
int root;